<ion-view title="到站签收">
    <ion-nav-buttons side="left">
        <button class="button back-button buttons icon ion-ios-arrow-left button-clear header-item" nav-direction="back" ui-sref="dzSearch">返回</button>
    </ion-nav-buttons>
      <ion-content >
        <ion-refresher pulling-text="下拉刷新..." on-refresh="doRefreshSearch()"></ion-refresher>

          <div ng-if="showloading" style="margin-top:60px; text-align: center">
              <ion-spinner icon="ios" style="height: 60px; width: 60px;"></ion-spinner>
          </div>
        <ion-list ng-if="showloading == false">
          <h5 ng-if="zdSearchData==''" style="color: #69717d;text-align: center;margin-top: 50px;">未找到数据</h5>
          <ion-item collection-repeat="data in zdSearchData" class="cydListItem" style="padding-top: 5px; padding-bottom: 5px;border-top-style: none;border-bottom-style: none;">
            <div class="ydList card list-inset" style="margin-bottom: 5px;">
                <div class="xuhao">
                    <div class="light list-operation button-border" ng-if="getClzt(data.clzt)=='发车'" ng-click="doReceipt(data)">
                        <i class="light list-operation">签收</i>
                        <i class="light" style="float: right;">丨</i>
                        <div class="light list-operation button-border" ng-click="scanBarcode(data.cph,data.zcdh,data.zcd_id)" ng-controller="ScanCodeCtrl">
                            <i class="light list-operation">扫码</i>
                        </div>
                    </div>
                </div>
                <div ui-sref="dzdetail({ id : data.zcd_id })">
                    <label class="item item-input">
                        <i class="list-input">车牌号：</i>
                        <p >{{data.cph}}</p>
                        <p style="margin-left: auto;margin-right: 8px;" ng-bind="getClzt(data.clzt)"></p>
                    </label>
                    <label class="item item-input">
                      <i class="list-input">装车单号：</i>
                      <p>{{data.zcdh}}</p>
                    </label>
                    <label class="item item-input">
                      <i class="list-input">装车时间：</i>
                      <p >{{data.zcsj}}</p>
                    </label>
                    <label class="item item-input">
                      <p >{{data.fhbmmc}}<i class="ion-minus" style="font-size: 16px"></i><i class="ion-arrow-right-c" style="font-size: 16px"></i>{{data.shbmmc}}</p>
                    </label>
                    <label class="item item-input">
                        <p style="width: 32%">总重量：{{data.zl}}t</p>
                        <p>总体积：{{data.tj}}㎥</p>
                        <p style="margin-left: auto;margin-right: 8px;">已签/总计：{{data.yqssl}}/{{data.co}}</p>
                    </label>
                </div>
            </div>
          </ion-item>
      </ion-list>
    <ion-infinite-scroll on-infinite="loadMoreSearch()" distance="1%" ng-if="hasNextPageSearch()"></ion-infinite-scroll>

    </ion-content>

</ion-view>
